#include "stdafx.h"
#include "../Engine/Mercenary.hpp"
#include "../Engine/UnitRenderer.hpp"
#include "../Engine/MercenaryController.hpp"

namespace he
{

	MercenaryController::MercenaryController(MercenaryPtr_t const &pUnit, UnitRendererPtr_t const &pUnitEntity)
		: m_pUnit(pUnit),
		m_pEntity(pUnitEntity)
	{
	}

	void MercenaryController::position(TerrainTile *pTile)
	{
		m_pUnit->position(pTile);
	}

	void MercenaryController::move()
	{
		m_pEntity->start_animation("run", true, false);
	}

	void MercenaryController::update(float TimeDelta)
	{
		m_pEntity->update(TimeDelta);
	}

} /*he*/
